<include file="public:header" />

<style>
.grid-table .col-id { width: 50px; }
.grid-table .col-checkbox { text-align: center; width: 35px; }
.grid-table .col-role { text-align: left; width: 120px; }
.grid-table .col-name { text-align: left;  }
.grid-table .col-status { width: 50px;  }
.grid-table .col-time { width: 140px; }
.grid-table .col-action { text-align: center; width: 120px; }
</style>

   <form id="lkform" name="lkform" action="" data-list="{:U('qqbook/listing_detail')}" data-delete="{:U('qqbook/delete_detail')}" method="post" class="lkcmsform">



<table width="100%" cellspacing="0" class="filter-table">
<tbody>
<tr>
	<td width="100%" align="left">
	
	
	{:L('创建时间')}:
	<input type="text" name="_filter_starttime" id="_filter_starttime" value="{$filter_starttime}" class="input-text" size="10" maxlength="100" readonly>
	<input type="text" name="_filter_endtime" id="_filter_endtime" value="{$filter_endtime}" class="input-text" size="10" maxlength="100" readonly>
	
	
	{:L('筛选')}:
    
    <select id="_filter_fieldname" name="_filter_fieldname" >
		
		<option value="username" <if condition="$filter_fieldname eq 'username'"> selected="selected"</if> > {:L('卡号')} </option>
		<option value="company_name" <if condition="$filter_fieldname eq 'company_name'"> selected="selected"</if> > {:L('单位名称')} </option>
		<option value="contact_name" <if condition="$filter_fieldname eq 'contact_name'"> selected="selected"</if> > {:L('联系人姓名')} </option>
		<option value=""> - {:L('全部')} - </option>
	</select>
	
	
    <input type="text" id="_f_search" name="_f_search" onchanges="form_list_submit(lkform);" class="" value="{$f_search}">

	<button onclick="form_list_submit(lkform);">{:L('开始')}</button>
	
	<!--
	<button onclick="
		document.getElementById('_f_order').value='';
		document.getElementById('_f_direc').value='';
		document.getElementById('_f_search').value='';

		document.getElementById('_filter_state').value='';
		form_list_submit(this.form);">{:L('清空')}</button>
	-->
	
	</td>
	
	
	<!--
	<td nowrap="nowrap">
		<select id="_filter_state" name="_filter_state" onchange="form_list_submit(lkform);" data-value="{$filter_state}">
		<option value=""> - {:L('选择状态')} - </option>
		<option value="1" <if condition="$filter_state eq '1'"> selected="selected"</if> > {:L('发布')} </option>
		<option value="0" <if condition="$filter_state eq '0'"> selected="selected"</if> > {:L('隐藏')} </option>
		</select>
	</td>
	-->
	
</tr>
</tbody>
</table>



<volist name="dataset" id="rec" >
<br><br>
<table width="100%" cellpadding="2" cellspacing="1" class="form-table">
<tbody>
	<tr> 
      <th width="60">{:L('卡号')} :</th>
      <td>{$rec['username']}</td>
    </tr>
	
	
	
	
	<tr> 
      <th width="60">{:L('单位名称')} :</th>
      <td>{$rec['company_name']}</td>
    </tr>
    
    <tr> 
      <th width="60">{:L('通讯地址')} :</th>
      <td>{$rec['address']}</td>
    </tr>
    
    <tr> 
      <th width="60">{:L('邮政编码')} :</th>
      <td>{$rec['zipcode']}</td>
    </tr>
    
    <tr> 
      <th width="60">{:L('单位电话')} :</th>
      <td>{$rec['phone']}</td>
    </tr>
    
    <tr> 
      <th width="60">{:L('单位传真')} :</th>
      <td>{$rec['fax']}</td>
    </tr>
    
    <tr> 
      <th width="60">{:L('单位网址')} :</th>
      <td>{$rec['weblink']}</td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('电子邮箱')} :</th>
      <td>{$rec['email']}</td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('企业类别')} :</th>
      <td>{$rec['company_type']}</td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('联系人姓名')} :</th>
      <td>{$rec['contact_name']}</td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('联系人性别')} :</th>
      <td>
       <if condition="$rec['contact_sex'] eq '1'">男</if>
        <if condition="$rec['contact_sex'] neq '1'">女</if></td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('联系人手机')} :</th>
      <td>{$rec['contact_mobile']}</td>
    </tr>
    
    
    
    <tr> 
      <th width="60">{:L('联系人邮箱')} :</th>
      <td>{$rec['contact_email']}</td>
    </tr>
    
    
    
    
    
    <tr>
        <th width="60">{:L('照片')} :</th>
        <td>
        
        <if condition="$rec['pic_show'] neq ''"><a href="{$rec['pic_show']}" target="_blank"><img src="{$rec['pic_show']}" width="800" ></a></if>
        
        
        </td>
    </tr>
    
    

</tbody>
</table>
</volist>



</form>


<script language="javascript">

    function form_ordering( order, dir, task ) {
        var form = document.lkform;
        form._f_order.value = order;
        form._f_direc.value = dir;
        form.submit( task );
    }

function form_checkbox_selectall(form){
	LkCmsForm.CheckBoxAll(form, 'name', 'id[]', 'chkallid');
}
function form_list_submit(form){
	$ = jQuery;
	$(form).prop('action', $(form).data('list'));
	$(form).submit();
}
function form_delete_submit(form){
//	$ = jQuery;
//	$(form).prop('action', $(form).data('delete'));	
//	var ids='';
//	$(form).children("input[name='id[]']:checked").each(function(i, n){
//		ids += $(n).val() + ',';
//	});
//	var info = "{:L('请选择你需要删除的用户')}";
//	if(ids=='') {
//		window.top.art.dialog({content:info,lock:true,width:'200',height:'50',time:1.5},function(){});
//		return false;
//	}
//	form.submit();
}
function table_change_status(id, type){
    $.get("{:U('qqbook/ajax_change_status')}", { id: id, type: type }, function(jsondata){
    	var status = jsondata.status;
    	var result = jsondata.result;
    	if( status == 'true'){
			$("#"+type+"_"+id+" img").attr('src', '__ROOT__/statics/images/status_'+ result +'.gif');
    	}
	}); 
}

;(function($){
	$(document).ready(function(){
		

	});

})(jQuery);
</script>

    <link href="__ROOT__/scripts/timefiles/style.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.theme.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.core.css" rel="stylesheet" type="text/css" />
    <script src="__ROOT__/scripts/timefiles/ui.datepicker.js" type="text/javascript"></script>
    <script type="text/javascript">
         $(function() {
             $("#_filter_starttime").datepicker();
             $("#_filter_endtime").datepicker();
         });
	</script>
	
	
	
<include file="public:footer" />